package it.codelair.getter;

import java.util.Date;

public class Calls {

	
	private String name;
	private String number;
	private int type;
	private Date date;
	public static final int INCOMING=android.provider.CallLog.Calls.INCOMING_TYPE;
	public static final int MISSED=android.provider.CallLog.Calls.MISSED_TYPE;
	public static final int OUTGOING=android.provider.CallLog.Calls.OUTGOING_TYPE;
	
	
	public Calls(String name,String number,int type,long date){
		if(this.name==null || this.name.length()<1)
			this.name=null;
		else
			this.name=name;
		
		this.number=number;
		this.type=type;
		this.date=new Date(date);
		
	}


	public String getName() {
		return name;
	}


	public String getNumber() {
		return number;
	}


	public int getType() {
		return type;
	}


	public Date getDate() {
		return date;
	}
	
	
}
